From a6458d6a322f85754b6900d9f0d0c0f3781ab1fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?=3D=3FUTF-8=3Fq=3FFabi=3DC3=3DA1n=3D20Ezequiel=3D20Gallina?= =?utf8?q?=3F=3D?= Date: Thu, 17 May 2012 00:03:19 -0300 Subject: [PATCH] Set local variable `mode-require-final-newline' to t --- lisp/progmodes/python.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 00a6b804e72..92cdd35d90a 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2354,6 +2354,8 @@ if that value is non-nil." ,(lambda (arg) (python-end-of-defun-function)) nil)) + (set (make-local-variable 'mode-require-final-newline) t) + (set (make-local-variable 'outline-regexp) (python-rx (* space) block-start)) (set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n") -- 2.30.2